import Vue from "vue"
import Vuex from "vuex"
Vue.use(Vuex)
// 提供仓库
const store = new Vuex.Store({
  state: {
    count: "我是vuex中的额数据，全局变量",
    ishow:false,
    ispaly:"正在播放"
  },
  mutations: {
    changeCount (state) {
      // 变更状态

      state.count="我是修改后的vuex数据"
      console.log(state)
    },
    changeIshow(state,params){
      console.log(params)
        state.ishow=params.data
    }

  },
  getters:{
    getCount(state){
      return state.count;
    },
    ishow(state){
      return state.ishow;
    }




  }

})


export default store;
